package com.cy.chatTest.db;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface UserInfoRepository extends JpaRepository<UserInfo,Long>{

    UserInfo findById(Long id);
    UserInfo findTopByIpOrderByCookieValidityDesc(String ip);
    UserInfo findByUsername(String username);
    UserInfo findByCookie(String cookie);
}
